package cn.sportvip.entity.sport;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import cn.sportvip.Sport.HIS;
import cn.sportvip.entity.IdEntity;

@Entity
@Table(name = "sport_coursehistory")
public class CourseHistory extends IdEntity{

	private static final long serialVersionUID = 1L;
	@Column(name = "user_id", nullable = false)
	private Integer userId;
	@Column(name = "course_id", nullable = false)
	private Integer targetId;
	@Column(nullable = false)
	private HIS type;
	public Integer getUserId() {
		return userId;
	}
	public void setUserId(Integer userId) {
		this.userId = userId;
	}
	public Integer getTargetId() {
		return targetId;
	}
	public void setTargetId(Integer targetId) {
		this.targetId = targetId;
	}
	public HIS getType() {
		return type;
	}
	public void setType(HIS type) {
		this.type = type;
	}
}
